package com.didispace;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class Blog {
    @Value("${random.value}")
    private String value;
    @Value("${random.int}")
    private Integer number;
    @Value("${random.long}")
    private Long bignumber;
    @Value("${random.int(10)}")
    private Integer test1;
    @Value("${random.int[10,20]}")
    private Integer test2;

    public String getValue() {
        return value;
    }
    public void setValue(String value) {
        this.value = value;
    }
    public Integer getNumber() {
        return number;
    }
    public void setNumber(Integer number) {
        this.number = number;
    }
    public Long getBignumber() {
        return bignumber;
    }
    public void setBignumber(Long bignumber) {
        this.bignumber = bignumber;
    }
    public Integer getTest1() {
        return test1;
    }
    public void setTest1(Integer test1) {
        this.test1 = test1;
    }
    public Integer getTest2() {
        return test2;
    }
    public void setTest2(Integer test2) {
        this.test2 = test2;
    }
}
